Skip to content

test: set up coverage infrastructure in CI#2094

Merged
KRRT7 merged 2 commits intomainfrom
test/coverage-infrastructure
Apr 23, 2026
Merged

test: set up coverage infrastructure in CI#2094
KRRT7 merged 2 commits intomainfrom
test/coverage-infrastructure

Conversation

@KRRT7
Copy link
Copy Markdown
Collaborator

@KRRT7 KRRT7 commented Apr 23, 2026

Closes #2080

Summary

  • Adds pytest-cov to dev dependencies
  • Adds .coveragerc with branch coverage enabled, codeflash as the source, and a 60% coverage floor (current baseline)
  • Adds a coverage CI job on ubuntu/py3.13 that runs pytest with --cov, enforces the floor via coverage report --fail-under=60, and uploads coverage.xml as an artifact
  • Wires the coverage job into the required-checks-passed gate so PRs that drop coverage below 60% can't merge

The floor should be ratcheted up as coverage PRs land (tracked in #2079).

- Add pytest-cov to dev dependencies
- Add .coveragerc with branch coverage, 60% floor (current baseline),
  and source/omit configuration
- Add coverage CI job (ubuntu/py3.13) that runs pytest with --cov,
  enforces the floor, and uploads coverage.xml as an artifact
- Wire coverage into the required-checks-passed gate

Closes #2080
@github-actions github-actions Bot added the workflow-modified This PR modifies GitHub Actions workflows label Apr 23, 2026
pytest-cov's trace function conflicts with the Tracer class under test,
causing it to self-disable in CI. Linux also reports ~1% lower coverage
than macOS due to platform-specific branches.
@KRRT7 KRRT7 marked this pull request as ready for review April 23, 2026 08:18
@KRRT7 KRRT7 merged commit 8956fda into main Apr 23, 2026
32 checks passed
@KRRT7 KRRT7 deleted the test/coverage-infrastructure branch April 23, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow-modified This PR modifies GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: set up coverage infrastructure in CI

1 participant